package com.licw.mapper;

import com.licw.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 批量新增套餐菜品关联
     */
    void insertBatch(List<SetmealDish> setmealDishes);

    /**
     * 根据菜品id（可以多个）查询关联套餐id
     */
    List<Long> selectSetmealIdsByDishIds(List<Long> dishIds);

    /**
     * 根据套餐id查询
     */
    List<SetmealDish> selectBySetmealId(Long setmealId);

    /**
     * 根据套餐id批量删除套餐和菜品关联
     */
    void deleteBatchBySetmealIds(List<Long> setmealIds);


}
